﻿@model etracks.Web.ResourceRegistrationViewModel

<div class="form-group">
    <label for="input_name" class="col-sm-2 control-label">Name</label>
    <div class="col-sm-8">
        <input type="text" class="form-control" id="input_name" name="name" placeholder="eg. Resource name" value="@Model.Name" autocomplete="off">
    </div>
</div>

<div class="form-group">
    <label for="input_name" class="col-sm-2 control-label">Alias</label>
    <div class="col-sm-8">
        <input type="text" class="form-control" id="input_name" name="alias" placeholder="eg. Alias for resource" value="@Model.Alias" autocomplete="off">
    </div>
</div>

<div class="form-group">
    <label for="input_name" class="col-sm-2 control-label">
        @Html.ActionLink("Type", "List", "ResourceType", null, null)
    </label>
    <div class="col-sm-8">
        <select class="form-control" id="select_resource_type" name="resourcetypeid">
            <option value="">No selection</option>
            @foreach (etracks.EntityModels.ResourceType rt in Model.ResourceTypeList)
            {
                <option value="@rt.Id" @DataHelper.IsSelected(rt.Id, Model.ResourceTypeId)>@rt.Name</option>
            }
        </select>
    </div>
</div>
